package com.etc.controller;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.etc.entity.Blog;
import com.etc.service.BlogService;
import com.etc.service.LineupService;

@Controller
public class LineupController {

	@Resource
	private LineupService ls;
	
	
	@RequestMapping(value="/lineup",method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Integer> Lineup(int sellerId,int userId) {
		Map<String, Integer> map= new HashMap<>();
		int lineupNo=ls.insertLineup(userId, sellerId);
		map.put("lineupNo", lineupNo);
		return map;
		
	}

	
	
	
	
	

}
